package com.example.forum.entity;

import com.baomidou.mybatisplus.annotation.*;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.util.Date;
import java.util.List;

/**
 * <p>
 * 
 * </p>
 *
 * @author why
 * @since 2020-04-22
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("dbo.T_MENUS")
public class TMenus implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId (value = "ID",type = IdType.UUID)
    private String id;

    @TableField(value = "ISDELETED",fill = FieldFill.INSERT_UPDATE)
    private Boolean isdeleted;

    @TableField(value = "CREATIONTIME", fill = FieldFill.INSERT)
    private Date creationtime;

    @TableField("LASTMODIFICATIONTIME")
    private Date lastmodificationtime;

    @TableField(value = "DELETIONTIME" )
    private Date deletiontime;

    @TableField("CREATORUSERID")
    private String creatoruserid;

    @TableField("CREATORNAME")
    private String creatorname;

    @TableField("UPDATEUSERID")
    private String updateuserid;

    @TableField("DELETERUSERID")
    private String deleteruserid;

    @TableField("REMARK")
    private String remark;

    @TableField("NAME")
    private String name;

    @TableField("URL")
    private String url;

    @TableField("CUSTOMDATA")
    private String customdata;

    @TableField("ICON")
    private String icon;

    @TableField("CLASSNAME")
    private String classname;

    @TableField("ORDERIN")
    private Integer orderin;

    @TableField("PERMISSIONTARGET")
    private String permissiontarget;

    @TableField("PARENTID")
    private String parentid;

    @TableField(exist = false)
    private List<TMenus> menuItems;

}
